<!-- 用户显示模板 vue 全是{{}} 插值表达式  -->
<script type="text/template" id="users_template">
    {{each list}}
    <tr>
        <td class="text-center"><input type="checkbox" class="check-item" data-id="{{$value.id}}"></td>
        <td class="text-center"><img class="avatar" src="{{$value.avatar}}"></td>
        <td>{{$value.email}}</td>
        <td>{{$value.slug}}</td>
        <td>{{$value.nickname}}</td>
        {{if $value.status=='activated'}} 
        <td>激活</td>
        {{ else if $value.status == 'unactivated'}} 
        <td>未激活</td>
        {{ else if $value.status =='forbidden'}} 
        <td>禁止</td>
        {{ else}} 
        <td>回收站</td>
        {{/if}}
        <td class="text-center">
          <a href="javascript:;" data-id="{{$value.id}}" class="edit-user btn btn-default btn-xs">编辑</a>
          <a href="javascript:;" data-id="{{$value.id}}" class="delete-user btn btn-danger btn-xs">删除</a>
        </td>
      </tr>
    {{/each}}
</script>